//
//  UITextField+Inspectable.m
//  FastDoctor_6
//
//  Created by Yangperlove on 16/3/1.
//  Copyright © 2016年 cool. All rights reserved.
//

#import "UITextField+Inspectable.h"

@implementation UITextField (Inspectable)

- (void)setLeftViewImage:(UIImage *)leftViewImage {
    self.leftView = [[UIImageView alloc] initWithImage:leftViewImage];
    self.leftViewMode = UITextFieldViewModeAlways;
}

- (UIImage *)leftViewImage {
    UIView *vi = self.leftView;
    UIImageView *imgV = (UIImageView *)vi;
    return imgV.image;
}

@end
